<template>
  <div id="box">
    <div class="App-top" id="banner"></div>
    <div class="App-bottom">
      <div class="App-text1">404</div>
      <div class="App-text2">您想看的页面不存在哟🤐</div>
      <div class="h-20px"></div>
      <el-button type="primary" plain @click="handleHomePage">返回首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
import { HOME_URL } from "@/config/index.ts";

// 路由跳转
const router = useRouter();

const handleHomePage = () => {
  router.push({ path: HOME_URL });
};
</script>

<style lang="scss" scoped>
#box {
  overflow: hidden;
}
#banner {
  margin-top: 60px;
  background: url("@/assets/images/error/404.png") no-repeat;
  background-size: 100%;
}
.App-top {
  width: 600px;
  height: 500px;
  margin: 0 auto;
}
.App-bottom {
  height: 300px;
  margin-top: 20px;
  text-align: center;
}
.App-text1 {
  font-size: 46px;
  font-weight: bold;
}
.App-text2 {
  padding-top: 30px;
  font-family: YouYuan;
  font-size: 24px;
  font-weight: 600;
}
</style>
